Pick-and-place machine